﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.ServiceModel;
using System.Runtime.Serialization;

namespace Contract
{
    
    [Serializable]
    [MessageContract]
   public class MyFile
    {
        [MessageHeader(MustUnderstand = true)]
        public string Name { get; set; }
        [MessageBodyMember(Order = 1)]
        public Stream Value { get; set; }
        [MessageHeader(MustUnderstand = true)]
        public long Size { get; set; } 
    }

    
}
